//
//  FPRelationItem.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/21.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPRelationItem.h"

@implementation FPRelationItem
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.picImage = [[UIImageView alloc]initWithFrame:CGRectMake(kImageW(10), kImageH(10), kImageW(80), kImageH(120))];
    
        [self.contentView addSubview:_picImage];
        
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(kImageW(10),self.picImage.height + self.picImage.y, self.picImage.width, kImageW(15))];
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
    
        self.nameLabel.font = [UIFont systemFontOfSize:11];
        [self.contentView addSubview:_nameLabel];
        
       self.yearLabel = [[UILabel alloc]initWithFrame:CGRectMake(kImageW(10),self.nameLabel.height + self.nameLabel.y, self.picImage.width, kImageW(15))];
        self.yearLabel.textAlignment = NSTextAlignmentCenter;
        self.yearLabel.font = [UIFont systemFontOfSize:11];

        [self.contentView addSubview:_yearLabel];
    
    }
    return self;
}

@end
